# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=yass
pkgver=2.3.0
pkgrel=0
pkgdesc="Karaoke Editor"
url="http://yass-along.com/"
# blocked by openjdk11-jre-headless
arch="all !x86 !armhf !armv7 !riscv64"
license="GPL-3.0-or-later"
depends="openjdk11-jre"
makedepends="apache-ant openjdk8"
source="https://github.com/SarutaSan72/Yass/archive/refs/tags/$pkgver/yass-$pkgver.tar.gz
	0000-remove-com-sun.patch
	build.xml
	yass
	"
builddir="$srcdir/Yass-$pkgver"
options="!check" # no tests provided

build() {
	mv "$srcdir"/build.xml .
	JAVA_HOME="/usr/lib/jvm/java-8-openjdk" ant
}

package() {
	install -Dm644 "$builddir"/release/yass-$pkgver.jar "$pkgdir"/usr/share/yass/yass.jar
	install -Dm755 "$srcdir"/yass "$pkgdir"/usr/bin/yass
}

sha512sums="
a4bb50ff3df2a53579420f735fd1aad5bc84e21c87f2b1be340a485ce98f967c99907ed947c69bef4eda1ad4c29eacac2a8ae69905624b3adb4f66883a3b2a48  yass-2.3.0.tar.gz
ff9f500b81611b3c30e438a26dd35859f3338e5b8ba4962683036f5e9bcfdd0cc26954403b29e55e4a83bd1506d3bea8a636a31d04ca1b701d53c03cb5931ea8  0000-remove-com-sun.patch
30ad101368508d4c9a55ec18b4a73899de60eb9971d21a302d555db57898482d6540e25b050f2b690b4064f562480c02b4e5232d09284e9d3dbd4493348e34c8  build.xml
7f8fb663aeef66e1659ac3e4bafa0aec9074e4caa2bf7894be28e33a6efbea1199cb47d19068f6637269636c8ab5e254486fad2113fad854d70df0dc78b7a305  yass
"
